;
layui.define([ "table", "form" ], function(exports) {
	tab = layui.table, tab.render({
		elem : "#LAY-web-list",
		url : layui.setter.base + "merch/order/listJson",
		cols : [ [
		{
			field : "merchName",
			width : 160,
			title : "商户名",
			sort : !0
		},{
                field : "merchCode",
                title : "商户号",
                minWidth : 100
		}, {
			field : "merchOrderNo",
			title : "商户订单号",
			minWidth : 120
		}, {
			field : "amountShow",
			title : "交易金额(元)",
			minWidth : 120
		}, {
			field : "merchFeeShow",
			title : "手续费(元)",
			minWidth : 120
		}, {
			field : "orderStatusShow",
			title : "交易状态",
			templet : "#buttonTpl",
			minWidth : 100,
			align : "center"
		}, {
			field : "bizTypeShow",
			title : "类型",
			templet : "#buttonTpl",
			minWidth : 100,
			align : "center"
		}, {
			field : "channelCode",
			title : "渠道号",
			minWidth : 100
		}, {
                field : "orderNo",
                title : "系统订单号",
                minWidth : 180
		}, {
			field : "createTime",
			title : "创建时间",
			minWidth : 166
		}, {
			field : "payTime",
			title : "交易时间",
			minWidth : 166
		}, {
			field : "resp",
			title : "响应信息",
			minWidth : 160
		}, {
			title : "操作",
			minWidth : 150,
			align : "center",
			fixed : "right",
			toolbar : "#table-content-list"
		} ] ],
		page : !0,
		limit : 10,
		limits : [ 10, 15, 20, 25, 30 ],
		text: {none: '暂无相关数据'}
	}),
	tab.on("tool(LAY-web-list)", function(row) {
		if ("view" === row.event) {
			parent.layer.open({
				type : 2,
				title : "订单详情",
				content : layui.setter.base + "merch/order/view?id="
						+ row.data.id,
				maxmin : !0,
				area : [ "400px", "550px" ],
				btn : [ "关闭" ]
			});
			return;
		}

	}), exports("merchOrder", {})
});
